/**
 * 初始化详情对话框
 */
var ReceiveBasicInformationInfoDlg = {
    receiveBasicInformationInfoData : {}
};


/**
 * 关闭此对话框
 */
ReceiveBasicInformationInfoDlg.close = function() {
    parent.layer.close(window.parent.ReceiveBasicInformation.layerIndex);
}



/**
 * 提交修改
 */
ReceiveBasicInformationInfoDlg.editSubmit = function() {

	var id=parseInt($("#id").val());
	var modelCheck = {};
	modelCheck.id = id;
	var jsonData = JSON.stringify(modelCheck);
	 $.ajax({
			async : false,
			type : 'post',
			url : Feng.ctxPath+'/receiveBasicInformation/antiAudit',
			contentType : "application/json;charset=UTF-8",
			data :jsonData,
			success : function(data) {
				if (data == 'SUCCESS') {
					Feng.success("反审核成功!");
			        window.parent.ReceiveBasicInformation.table.refresh();
			        ReceiveBasicInformationInfoDlg.close();
				} else {
					 Feng.error("反审核失败!该登记已开始装车！");
				}
			},
			error : function(data) {
				 Feng.error("操作失败!");
			}
		});
}

$(function() {

});
